package logic.gridSimInterface.user;
/*
 * Author Miroslav Bellak
 * Date: May 2007
 */

public class GridletInfo {
	private int resourceId;
        private int brokerId;
	private int ownerId;
	private int gridletId;
	private double creationTime;
	private double completionTerm;
	private double length;
	private String operatingSystem;
	private String architecture;
	private int predecessorId;
	private double endTime;               //time when resource finish processing of gridlet 
	

	public GridletInfo(int userId, GridletComplex gridlet) {
		super();
		this.ownerId = userId;
		this.gridletId = gridlet.getGridletID();
		this.length = gridlet.getGridletLength();
		this.creationTime = gridlet.getCreationTime();
		this.operatingSystem = gridlet.getOperatingSystem();
		this.architecture = gridlet.getArchitecture();
		this.predecessorId = gridlet.getPredecessorId();
		this.completionTerm = gridlet.getCompletionTerm();
		this.endTime = gridlet.getFinishTime();
	}


	/**
	 * @return the resourceId
	 */
	public int getResourceId() {
		return resourceId;
	}


	/**
	 * @param resourceId the resourceId to set
	 */
	public void setResourceId(int resourceId) {
		this.resourceId = resourceId;
	}


	/**
	 * @return the gridletId
	 */
	public int getGridletId() {
		return gridletId;
	}


	/**
	 * @return the userId
	 */
	public int getUserId() {
		return ownerId;
	}


	/**
	 * @return the creationTime
	 */
	public double getCreationTime() {
		return creationTime;
	}


	/**
	 * @return the length
	 */
	public double getLength() {
		return length;
	}


	/**
	 * @return the architecture
	 */
	public String getArchitecture() {
		return architecture;
	}


	/**
	 * @return the operatingSystem
	 */
	public String getOperatingSystem() {
		return operatingSystem;
	}


	/**
	 * @return the predecessorId
	 */
	public int getPredecessorId() {
		return predecessorId;
	}


	/**
	 * @return the completionTerm
	 */
	public double getCompletionTerm() {
		return completionTerm;
	}


	/**
	 * @return the endTime
	 */
	public double getEndTime() {
		return endTime;
	}

    public int getBrokerId() {
        return brokerId;
    }

    public void setBrokerId(int brokerId) {
        this.brokerId = brokerId;
    }


	
	
}
